<?php
include_once "conn.php";
$id = $_POST['id'];
$name = $_POST['name'];
$sex = $_POST['sex'];
$barcode = $_POST['barcode'];
$readertype = $_POST['readertype'];
$work = $_POST['work'];
$zhenjian = $_POST['zhenjian'];
$number = $_POST['number'];
$chusheng = $_POST['chusheng'];
$phone = $_POST['phone'];
$mail = $_POST['mail'];
$main = new main();
$result = $main-> xiugaiuserinfo($barcode,$name,$sex,$work,$chusheng,$zhenjian,$number,$phone,$mail,$readertype,$id);
if ($result === 1 or $result === 0){
    $a['error'] = 1;//成功
}
else{
     $a['error']=0;
}
echo json_encode($a);